# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-builtwith
_pkgname=builtwith
pkgver=1.3.4
pkgrel=7
pkgdesc='Detect the technology used by a website, such as Apache, JQuery, and Wordpress.'
arch=('any')
url='https://pypi.org/project/builtwith/#files'
license=('LGPL')
depends=('python' 'python-requests')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('b309e14acfeafc3e8eddfcccc87fd2c44ecacc1867bff5f4f144cb2beeaab62a9464de1dcba1924eb1cf788748daad63470456a7e0e91158c31818196a47fc13')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {

  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

